import request from '@/utils/request'

// 查询工单处理节点列表
export function listSHEETNODE(query) {
  return request({
    url: '/wodemand/SHEETNODE/list',
    method: 'get',
    params: query
  })
}

// 查询工单处理节点详细
export function getSHEETNODE(sheetTypeId) {
  return request({
    url: '/wodemand/SHEETNODE/' + sheetTypeId,
    method: 'get'
  })
}

// 查询工单处理节点详细
export function getSheetTypes(_this) {
  return request({
    url: '/wodemand/SHEETNODE/sheetType',
    method: 'get'
  })
}

// 新增工单处理节点
export function addSHEETNODE(data) {
  return request({
    url: '/wodemand/SHEETNODE',
    method: 'post',
    data: data
  })
}

// 修改工单处理节点
export function updateSHEETNODE(data) {
  return request({
    url: '/wodemand/SHEETNODE',
    method: 'put',
    data: data
  })
}

// 删除工单处理节点
export function delSHEETNODE(sheetTypeId) {
  return request({
    url: '/wodemand/SHEETNODE/' + sheetTypeId,
    method: 'delete'
  })
}

// 导出工单处理节点
export function exportSHEETNODE(query) {
  return request({
    url: '/wodemand/SHEETNODE/export',
    method: 'get',
    params: query
  })
}
